package com.example.PolimiAssistant.common;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

/**
 * Created by Vlado on 09.06.2014.
 */
public class AlertMessage {
    String message;
    Context context;

    public AlertMessage(Context context, String Message) {
        this.message = Message;
        this.context = context;
    }

    public void Show(){
        AlertDialog.Builder builder = new AlertDialog.Builder(context);

        builder.setMessage(message);
        builder.setPositiveButton("OK", new DialogInterface.OnClickListener()
        {
            @Override
            public void onClick(DialogInterface dialog, int which)
            {
                dialog.dismiss();
            }
        });
        builder.show();
    }
}
